<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>L项目版本发布记录</title>
<link rel="stylesheet" type="text/css" href="{{ static_url("css/bootstrap.css") }}">
</head>
<body>
  <script src="{{ static_url("js/bootstrap.js") }}"></script>
  <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="brand" href="/">L项目版本自动化发布系统</a>
          <div class="nav-collapse collapse">
            <p class="navbar-text pull-right">
            </p>
            <ul class="nav">
               <li class="active"><a href="/">Index</a></li>
               <li><a href="/serverinfo/">服务信息查看</a></li>
               <li><a href="/taskinfo/">任务信息查看</a></li>
               <li><a href="/projects/">项目管理</a></li>
               <li><a href="/areas/">游戏大区管理</a></li>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>
    <p></p>
<h3>&nbsp;</h3>
<legend>L项目版本发布记录</legend>
<div class="pagination pagination-large">
  <ul>
    {% if page > 1 %}
      <li class="disabled"><a href="/?page={{ page - 1 }}">Previous</a></li>
    {% else %}
      <li class="disabled"><a href="/?page={{ 1 }}"> Previous</a></li>
    {% end %}

    <li class="disabled"><a href="/?page={{ 1 }}">min</a></li>
    <li class="active"><a href="/?page={{ page }}">{{ page }}</a></li>
    <li class="disabled"><a href="/?page={{ pages }}">max</a></li>

    {% if page < pages %}
      <li class="disabled"><a href="/?page={{ page + 1 }}">Next</a></li>
    {%else%}
      <li class="disabled"><a href="/?page={{ pages }}">Next</a></li>
    {% end %}
  </ul>
</div>
<table class="table table-hover condensed table-bordered">
  <tr class="info"><td>ID<td>发布时间<td>版本内容<td>项目类型<td>操作</tr>
  {% for version in versions %}
    <tr><td>{{ version.get('_id') }}<td>{{ str(version.get('create_time'))[:-7] }}<td>{{ str(version.get('path')).split("/")[-1:][0] }}<td>{{ version.get('version_type') }}<td><a href="/release/?v={{ version['path'] }}&v_type={{ version.get('version_type') }}">发布版本</a>
  {% end %}
</table>
<div class="pagination pagination-large">
  <ul>
    {% if page > 1 %}
      <li class="disabled"><a href="/?page={{ page - 1 }}">Previous</a></li>
    {% else %}
      <li class="disabled"><a href="/?page={{ 1 }}"> Previous</a></li>
    {% end %}
    
    <li class="disabled"><a href="/?page={{ 1 }}">min</a></li>
    <li class="active"><a href="/?page={{ page }}">{{ page }}</a></li>
    <li class="disabled"><a href="/?page={{ pages }}">max</a></li>

    {% if page < pages %}
      <li class="disabled"><a href="/?page={{ page + 1 }}">Next</a></li>
    {%else%}
      <li class="disabled"><a href="/?page={{ pages }}">Next</a></li>
    {% end %}
  </ul>
</div>
 </body>
 </html>
 